/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

.controls {
    display: flex;
    gap: 10px;
}

.controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover {
    background: #2980b9;
}

.controls button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* 配置区域样式 */
.config-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.config-section h2, .config-section h3, .config-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
}

.config-item label {
    margin-bottom: 5px;
    font-weight: bold;
}

.config-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.strategy-config {
    margin-top: 20px;
}

.asset-config-section {
    margin-top: 20px;
}

.asset-config-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* 市场信息样式 */
.market-info {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-card {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.info-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

/* 资产样式 */
.assets {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.assets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.asset-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: #f9f9f9;
}

.asset-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.asset-card p {
    margin-bottom: 10px;
}

/* 图表样式 */
.charts, .volume-heatmap, .orderbook-charts {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chart-container, .heatmap-container, .orderbook-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
}

.chart-wrapper, .heatmap-wrapper, .orderbook-wrapper {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

.chart-wrapper h3, .heatmap-wrapper h3, .orderbook-wrapper h3 {
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
}

/* 投资者样式 */
.investors {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.investors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.investor-card {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.investor-retailinvestor {
    background: #d5f5e3;
    border: 1px solid #27ae60;
}

.investor-marketmaker {
    background: #fdebd0;
    border: 1px solid #f39c12;
}

.investor-institutionalinvestor {
    background: #ebdef0;
    border: 1px solid #8e44ad;
}

.investor-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 宏观事件样式 */
.events {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.event-card {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.event-economic {
    background: #d5f5e3;
    border: 1px solid #27ae60;
}

.event-political {
    background: #fdebd0;
    border: 1px solid #f39c12;
}

.event-technology {
    background: #ebdef0;
    border: 1px solid #8e44ad;
}

.event-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.event-card p {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .config-grid, .info-grid, .assets-container, .investors-container, .events-container {
        grid-template-columns: 1fr;
    }
    
    .chart-container, .heatmap-container {
        grid-template-columns: 1fr;
    }
}

/* 新增的订单簿图表样式 */
.orderbook-chart-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.orderbook-chart-wrapper {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    height: 500px;
}

.orderbook-chart-wrapper h3 {
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
}